import fetch from "@/utils/fetch"
const BASE_URL = "bl-user";
export const getUserInfo = ()=>{
    return fetch({
        method:"get",
        url:BASE_URL + "/getThirdUserInfo"
    })
} 


export const register = (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/register",
        data,
    })
}

export const login =  (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/login",
        data,
    })
}

export const getUserAccount = ()=>{
    return fetch({
        method:"get",
        url:BASE_URL + "/userinfo"
    })
}